<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文件浏览器</title>
    <script src="../js/jquery-3.6.0.min.js"></script>
    <style>
        *{
            margin: 0px;
            padding: 0px;
        }
    </style>
</head>
<body>
    <div id="container">
        <video id="player" controls width="100%" height="100%" ></video>
    </div>
    
</body> 
<script>
    $(function(){
        // 调整窗口大小
        $("#player").attr("width", (window.innerWidth - 20)+ "px");
        $("#player").attr("height", (window.innerHeight - 20) + "px");

        // 设置视频URL
        let url = window.location.href;
        let i = url.indexOf("#");
        let base = url.substring(i+1);
        console.log(base);
        let videoURL = "video?" + base;
        $("#player").attr("src", videoURL);
    });


</script>
</html>